# -*- coding:UTF-8 -*-
"""
@Project : pythonProject
@File    : Triangle.py
@IDE     : PyCharm
@Author  : WorldWind(1772830365@qq.com)
@Date    : 2025/7/5 下午3:14
"""
try:
    Judg = True
    while Judg:
        try:
            a,b,c = input("请输入三角形三条边，要求用‘,’隔开:").split(",")
            a = float(a)
            b = float(b)
            c = float(c)
            data1 = {a, b, c}
            data2 = {a*a,b*b,c*c}
            if a + b > c and a + c > b and b + c > a:
                if len(data1) == 1:
                    print(f"您输入的为等边三角形！三边为：{a},{b},{c}")
                    Judg = False
                elif len(data1) == 2:
                    if a*a + b*b in data2 or a*a + c*c in data2 or b*b + c*c in data2:
                        print(f"您输入的为等腰直角三角形！三边为：{a},{b},{c}")
                        Judg = False
                    else:
                        print(f"您输入的为等腰三角形！三边为：{a},{b},{c}")
                        Judg = False
                elif a*a + b*b in data2 or a*a + c*c in data2 or b*b + c*c in data2:
                    print(f"您输入的为直角三角形！三边为：{a},{b},{c}")
                    Judg = False
                else:
                    print(f"您输入的为正常三角形！三边为：{a},{b},{c}")
                    Judg = False
            else:
                print("您输入的三角形非法，请重新输入！")
        except Exception as e:
            print("您输入的内容非法")
        else:
            print('')
except Exception as e:
    print(e)
else:
    print("The end")